package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.dao.UserinfoMapper;
import com.stylefeng.guns.modular.system.model.UserinfoActive;
import com.stylefeng.guns.modular.system.dao.UserinfoActiveMapper;
import com.stylefeng.guns.modular.system.service.IUserinfoActiveService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author kutty
 * @since 2018-12-19
 */
@Service
public class UserinfoActiveServiceImpl extends ServiceImpl<UserinfoActiveMapper, UserinfoActive> implements IUserinfoActiveService {

    @Resource
    private UserinfoActiveMapper userinfoActiveMapper;

    public  int insert(@Param("phoneUserinfoActive") UserinfoActive phoneUserinfoActive, @Param("tableDate")String tableDate){
        return userinfoActiveMapper.insert(phoneUserinfoActive,tableDate);
    }

    public List<UserinfoActive> selByPhoneUdid(String phoneUdid){
        return userinfoActiveMapper.selByPhoneUdid(phoneUdid);
    }

}
